﻿@model Reserva_de_Vuelo.Models.BusquedaVuelo
 
 <script type="text/javascript">
     jQuery(function ($) {
         $("#TipoVueloIdaVuelta_True").click(function () {
             document.getElementById("divFechaRetorno").style.display = "block";
             document.getElementById("lblRetorno").style.display = "block";
         });
         $("#TipoVueloIda_True").click(function () {
             document.getElementById("divFechaRetorno").style.display = "none";
             document.getElementById("lblRetorno").style.display = "none";
         });
     })
 </script>          
@using (Html.BeginForm("Resultados", "Home", FormMethod.Post, new { id = Model }))
{
<div id="motor-resultado3">
    <div id="motor-resultado">
        <ul class="tabs">
        <li><a href="">Volver a Buscar</a>
        <img src="/Images/icono-vuelos.png" alt=""/>
        </li>
        </ul>
        <p class="sumilla">Oferta de vuelos nacionales e Internacionales</p>
        <div class="tab_container">
        <!--Vuelos-->
            <div>
<div class="motor-normal">
<div class="contenido_multi">
    <div class="fly">
@Html.ValidationMessageFor(model => model.EsIdaVuelta)
        <div class="radio_ida_vuelta">
            <span class="type">Ida y vuelta</span>
            <span class="value">
            @Html.RadioButtonFor( model => model.EsIdaVuelta, true, new { id = "TipoVueloIdaVuelta_True", @Checked = "true" } )
            </span>
        </div>
        <div class="radio_solo_ida">
            <span class="type">S&oacute;lo ida</span>
            <span class="value">
            @Html.RadioButtonFor( model => model.EsIdaVuelta, false, new { id = "TipoVueloIda_True"} )
            </span>
        </div>
    </div>
    <div id="Motor_simple1_div_multi" style="display: none; ">
        <div class="searchbox" style="margin-left:5px;">
            <div class="pdt-flights">
                <div class="ctn-multipledestination">
                    <div class="segment-1">
                        <div style="width:400px">
                        <div class="mod-dates" style="margin-top:5px; margin-bottom:0px;height:18px;">
                            <div class="multicity_origen">
                                 <strong>Origen</strong>
                            </div>
                            <div class="multicity_origen">
                                 <strong>Destino</strong>
                            </div>
                            <div class="com-datein">
                                <strong>Fecha</strong>
                            </div>
                         </div>
                        </div>
                    </div>
                    <div class="segment-1">
                        <div style="width:400px">
                        <div class="mod-dates">
                            <div class="multicity_origen">
                                <input name="ctl00$Motor_vuelos1$txtOrigen1" type="text" id="ctl00_Motor_vuelos1_txtOrigen1" class="multicity_caja_ori_des" onkeypress="return f_solo_letras(event);" autocomplete="off" />
                            </div>
                            <div class="multicity_origen">
                                <input name="ctl00$Motor_vuelos1$txtDestino1" type="text" id="ctl00_Motor_vuelos1_txtDestino1" class="multicity_caja_ori_des" onkeypress="return f_solo_letras(event);" autocomplete="off" />
                            </div>
                            <div class="mn_in_mul">
                                <input name="ctl00$Motor_vuelos1$txtFechaSalida1" type="text" id="txtFechaSalida1" class="input4" maxlength="10" placeholder="dd/mm/aaaa" />
                            </div>
                         </div>
                        </div>
                    </div>
                    <div class="segment-2">
                        <div style="width:400px">
                        <div class="mod-dates">
                            <div class="multicity_origen">
                                <input name="ctl00$Motor_vuelos1$txtOrigen2" type="text" id="ctl00_Motor_vuelos1_txtOrigen2" class="multicity_caja_ori_des" onkeypress="return f_solo_letras(event);" autocomplete="off" />
                            </div>
                            <div class="multicity_origen">
                                <input name="ctl00$Motor_vuelos1$txtDestino2" type="text" id="ctl00_Motor_vuelos1_txtDestino2" class="multicity_caja_ori_des" onkeypress="return f_solo_letras(event);" autocomplete="off" />
                            </div>
                            <div class="mn_in_mul">
                                <input name="ctl00$Motor_vuelos1$txtFechaSalida2" type="text" id="txtFechaSalida2" class="input5" maxlength="10" placeholder="dd/mm/aaaa" />
                            </div>
                         </div>
                        </div>
                    </div>
                    <div class="segment-3">
                        <div style="width:400px">
                        <div class="mod-dates">
                            <div class="multicity_origen">
                                <input name="ctl00$Motor_vuelos1$txtOrigen3" type="text" id="ctl00_Motor_vuelos1_txtOrigen3" class="multicity_caja_ori_des" onkeypress="return f_solo_letras(event);" autocomplete="off" />
                            </div>
                            <div class="multicity_origen">
                                <input name="ctl00$Motor_vuelos1$txtDestino3" type="text" id="ctl00_Motor_vuelos1_txtDestino3" class="multicity_caja_ori_des" onkeypress="return f_solo_letras(event);" autocomplete="off" />
                            </div>
                            <div class="mn_in_mul">
                                <input name="ctl00$Motor_vuelos1$txtFechaSalida3" type="text" id="txtFechaSalida3" class="input6" maxlength="10" placeholder="dd/mm/aaaa" />
                            </div>
                         </div>
                        </div>
                    </div>
                    <div class="segment-4">
                        <div style="width:400px">
                        <div class="mod-dates">
                            <div class="multicity_origen">
                                <input name="ctl00$Motor_vuelos1$txtOrigen4" type="text" id="ctl00_Motor_vuelos1_txtOrigen4" class="multicity_caja_ori_des" onkeypress="return f_solo_letras(event);" autocomplete="off" />
                            </div>
                            <div class="multicity_origen">
                                <input name="ctl00$Motor_vuelos1$txtDestino4" type="text" id="ctl00_Motor_vuelos1_txtDestino4" class="multicity_caja_ori_des" onkeypress="return f_solo_letras(event);" autocomplete="off" />
                            </div>
                            <div class="mn_in_mul">
                                <input name="ctl00$Motor_vuelos1$txtFechaSalida4" type="text" id="txtFechaSalida4" class="input7" placeholder="dd/mm/aaaa" />
                            </div>
                         </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="Motor_simple1_div_normal" style="display: block; ">
        <div class="cities">
                <div class="div-origen">
            <span class="type">Origen</span>
            <span class="value">
                    @Html.TextBoxFor(modelo => modelo.Origen, new { maxlength = 20, autocomplete = "off" , value="LIM", style="width:235px;"})
                    @Html.ValidationMessageFor(model => model.Origen)
            </span>
            </div>
                <div class="div-destino">
            <span class="type">Destino</span>
            <span class="value">
                    @Html.TextBoxFor(modelo => modelo.Destino, new { maxlength = 20, autocomplete = "off" , value="LIM", style="width:235px;"})
                    @Html.ValidationMessageFor(model => model.Destino)
            </span>
            </div>
        </div>
        <div class="searchbox"  >
            <div class="pdt-flights">
                <div id="divRoundTrip" class="ctn-roundtrip">
                    <div class="com-datein">
                        <div class="c_fechas">
                            <label class="label_sal_in"> Salida </label>
                            <div class="mn_in">
                                @Html.TextBoxFor(modelo => modelo.FechaSalida, new { @class = "input1", placeholder = "dd/mm/aaaa", maxlength = 10, autocomplete = "off" , @readonly = "readonly" })
                                @Html.ValidationMessageFor(model => model.FechaSalida)
                            </div>
                            <label id="lblRetorno" class="label_ret_in"> Retorno  </label>
                            <div id="divFechaRetorno" class="mn_in">
                                @Html.TextBoxFor(modelo => modelo.FechaRetorno, new { @class = "input2", placeholder = "dd/mm/aaaa", maxlength = 10, autocomplete = "off" , @readonly = "readonly" })
                            </div>
                            <input type="text" readonly="readonly" id="done" />
                            <div class="datepicker" style=" margin-top:25px;  display:none; z-index: 998;position: absolute;"  >
                            </div>
                                @Html.ValidationMessage("IngreseFechaRetorno")
                                @Html.ValidationMessage("FechaRetornoMayorFechaSalida")
                        </div>
                    </div>
                </div>
                <div id="divOneWay" class="ctn-multipledestination" style="display:none">
                    <div id="Motor_simple1_divDateRet" class="segment-5">
                        <div>
                        <div class="mod-dates">
                                <div class="multicity_origen" style="width:51px;">
                                <div class="c_fechas" style="width:190px" >
                                     <label class="label_ret_in" style="width:47px" > Salida  </label>
                                     <div class="mn_in">
									    <input name="ctl00$Motor_vuelos1$txtFechaSalidaOneWay" type="text" id="ctl00_Motor_vuelos1_txtFechaSalidaOneWay" class="input3" placeholder="dd/mm/aaaa" />
                                </div>
                            </div>
                            </div>
                         </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    @{
    List<SelectListItem> lstAdultos = new List<SelectListItem>();
    for (int intX = 1; intX <= 8; intX++) {
        lstAdultos.Add(new SelectListItem { Text = intX.ToString(), Value = intX.ToString() });
    }
    List<SelectListItem> lstNinos = new List<SelectListItem>();
    for (int intX = 0; intX <= 5; intX++)
    {
        lstNinos.Add(new SelectListItem { Text = intX.ToString(), Value = intX.ToString() });
    }
    List<SelectListItem> lstInfantes = new List<SelectListItem>();
    for (int intX = 0; intX <= 5; intX++)
    {
        lstInfantes.Add(new SelectListItem { Text = intX.ToString(), Value = intX.ToString() });
    }
    }
        <div class="segmento_adul_nin_inf">
        <span>Adultos</span>
        <span class="value">
                @Html.DropDownListFor(model => Model.Adultos, lstAdultos, new { @class = "combo_M_vuelos"})
				&nbsp;&nbsp;&nbsp;
        </span>
        <span>Ni&ntilde;os</span>
        <span class="value">
                @Html.DropDownListFor(model => Model.Ninos, lstNinos, new { @class = "combo_M_vuelos"})
			&nbsp;&nbsp;
        </span>
        <span>Infantes</span>
        <span class="value">
             @Html.DropDownListFor(model => Model.Infantes, lstInfantes, new { @class = "combo_M_vuelos"})
        </span>
    </div>
    <div class="submit">
							<input type="submit" name="btnBuscarVuelos" value="Buscar" id="btnBuscarVuelos" class="button"  />                 
    </div>
</div>

                         </div>
                    </div>
                </div>
            </div>
        </div>
}